<?php

// Include
include_once('include/header.php');
include_once('plugin/ObrasDBPlugin.php');

// Breadcrumb
$breadcrumb = AppConfigPlugin::getBreadcrumb(basename($_SERVER['PHP_SELF']));
$smarty->assign('breadcrumb', $breadcrumb);

// Ejecucion
$obra = ObrasDBPlugin::getById($_GET[id]);

// Smarty call
$smarty->assign('obra', $obra);

$smarty->display('viewobra.tpl');

?>